package me.zhengjie.modules.enrstu.service.enums;

import lombok.Getter;


@Getter
public enum ReviewStage {
    SCHOOL_REVIEW("学校初审"),
    ADMITTED("录取"),
    EDUCATION_BUREAU_REVIEW("教育局复审"),
    SUBMIT("提交审核");



    private final String description;

    ReviewStage(String description) {
        this.description = description;
    }

    public static ReviewStage fromDescription(String description) {
        for (ReviewStage stage : ReviewStage.values()) {
            if (stage.getDescription().equals(description)) {
                return stage;
            }
        }
        return null;
    }
}